package com.wg.db.sql;

import java.util.Arrays;

/**
 * sql语句
 *
 * @author 少爷123
 */
public class SqlStatement {

    /**
     * 语句
     */
    private String commandText;

    /**
     * 参数
     */
    private Object[] params;

    public String getCommandText() {
        return commandText;
    }

    public void setCommandText(String commandText) {
        this.commandText = commandText;
    }

    public Object[] getParams() {
        return params;
    }

    public void setParams(Object[] params) {
        this.params = params;
    }

    @Override
    public String toString() {
        return "{" + "sql='" + commandText + '\'' + ", params=" + Arrays.toString(params) + '}';
    }
}
